<?php
namespace app\model;
use think\Model;

class CommentModel extends Model{
    protected $name = 'comment';//表名
    protected $pk = 'comment_id';//表的主键
}